﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;

namespace EntityFrameworkETL.Attributes
{
    public class ConditionallyInsertIdentity : DatabaseGeneratedAttribute
    {
        public ConditionallyInsertIdentity()
#if (IdentityInsert)
            : base(DatabaseGeneratedOption.None)
#else
            : base(DatabaseGeneratedOption.Identity)
#endif
        {

        }
    }
}